package com.project.bean;

/***
 * 回帖实体类
 */
public class PostBean {
    /**编号*/
    private int id;
    /**用户对象*/
    private UserBean user;
    /**主贴对象*/
    private MainStickerBean mainSticker;
    /**标题*/
    private String title;
    /**内容*/
    private String content;

    public PostBean() {
    }

    public PostBean(int userId, int mainId, String title, String content) {
        this.user = new UserBean();
        this.user.setId(userId);
        this.mainSticker = new MainStickerBean();
        this.mainSticker.setId(mainId);
        this.title = title;
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public MainStickerBean getMainSticker() {
        return mainSticker;
    }

    public void setMainSticker(MainStickerBean mainSticker) {
        this.mainSticker = mainSticker;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "PostBean{" +
                "id=" + id +
                ", user=" + user +
                ", mainSticker=" + mainSticker +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                "}\n";
    }
}
